package com.lbj.mall.cart.service;

import com.lbj.mall.cart.entity.vo.CartItemVo;
import com.lbj.mall.cart.entity.vo.CartVo;

import java.util.List;
import java.util.concurrent.ExecutionException;

public interface CartService {
    CartItemVo addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    CartItemVo getCardItem(Long skuId);

    CartVo getCart() throws ExecutionException, InterruptedException;

    void clearCart(String cartKey);

    void checkItemNum(Long skuId, Integer num);

    void checkItemSelect(Long skuId, Boolean checked);

    void deleteItem(Long skuId);

    List<CartItemVo> getUserCartItems();
}
